import request from '@/utils/request';
import {checkDownloadRes, download, toFormData} from "@/utils/common";

/**
 * i至诚授权认证
 * @param data
 * @returns {Promise<any>}
 */
export async function casAuth(data) {
  const res = await request.post('/cas/auth', data);
  if (res.data.code === 200) {
    return res.data;
  }
  return Promise.reject(new Error(res.data.msg));
}
